﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExitEventApp
{
    public class RentedItem
    {
        /* Declaring the fields*/
        private int productId;
        private String productName;
        private double unitPrice;
        private int deposit;
        private bool isReturned;

        /*Constructor*/
        public RentedItem(int productId, string name, double price, int deposit, bool isReturned)
        {
            this.productId = productId;
            this.productName = name;
            this.unitPrice = price;
            this.deposit = deposit;
            this.isReturned = isReturned;
        }

        /*Getters and setters*/
        public int ProductId
        {
            get { return productId; }
        }
        public String ProductName
        {
            get { return productName; }
        }
        public double UnitPrice
        {
            get { return unitPrice; }
        }
        public int Deposit
        {
            get { return deposit; }
        }
        public bool IsReturned
        {
            get { return isReturned; }
            set
            {
                this.isReturned = value;
            }
        }
    }
}

